<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>junglego: glHelper.hpp File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">junglego
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">glHelper.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;GL/gl.h&gt;</code><br/>
<code>#include &lt;GL/glu.h&gt;</code><br/>
<code>#include &lt;GL/glut.h&gt;</code><br/>
<code>#include &lt;string&gt;</code><br/>
<code>#include &lt;fstream&gt;</code><br/>
<code>#include &lt;iostream&gt;</code><br/>
<code>#include &lt;sstream&gt;</code><br/>
<code>#include &lt;cstdlib&gt;</code><br/>
<code>#include &lt;math.h&gt;</code><br/>
<code>#include &lt;unistd.h&gt;</code><br/>
<code>#include &lt;ctime&gt;</code><br/>
<code>#include &quot;<a class="el" href="types_8hpp_source.html">types.hpp</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for glHelper.hpp:</div>
<div class="dyncontent">
<div class="center"><img src="gl_helper_8hpp__incl.png" border="0" usemap="#gl_helper_8hpp" alt=""/></div>
<map name="gl_helper_8hpp" id="gl_helper_8hpp">
<area shape="rect" id="node25" href="types_8hpp.html" title="types.hpp" alt="" coords="989,80,1067,107"/></map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="gl_helper_8hpp__dep__incl.png" border="0" usemap="#gl_helper_8hppdep" alt=""/></div>
<map name="gl_helper_8hppdep" id="gl_helper_8hppdep">
<area shape="rect" id="node3" href="neuron_8hpp.html" title="neuron.hpp" alt="" coords="105,80,191,107"/><area shape="rect" id="node9" href="object_8hpp.html" title="object.hpp" alt="" coords="335,80,417,107"/><area shape="rect" id="node15" href="gl_helper_8cpp.html" title="glHelper.cpp" alt="" coords="337,229,431,256"/><area shape="rect" id="node17" href="world_8cpp.html" title="world.cpp" alt="" coords="463,229,540,256"/><area shape="rect" id="node22" href="main_8cpp.html" title="main.cpp" alt="" coords="543,80,617,107"/><area shape="rect" id="node24" href="testbrain_8cpp.html" title="Test/testbrain.cpp" alt="" coords="642,80,768,107"/><area shape="rect" id="node5" href="brain_8cpp.html" title="brain.cpp" alt="" coords="5,155,80,181"/><area shape="rect" id="node7" href="neuron_8cpp.html" title="neuron.cpp" alt="" coords="105,155,191,181"/><area shape="rect" id="node11" href="creature_8hpp.html" title="creature.hpp" alt="" coords="215,155,309,181"/><area shape="rect" id="node19" href="object_8cpp.html" title="object.cpp" alt="" coords="335,155,417,181"/><area shape="rect" id="node13" href="creature_8cpp.html" title="creature.cpp" alt="" coords="215,229,309,256"/></map>
</div>
</div>
<p><a href="gl_helper_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a0be26f297e969c1bec3fabc753fbcee8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gl_helper_8hpp.html#a0be26f297e969c1bec3fabc753fbcee8">initCore</a> ()</td></tr>
<tr class="memitem:af151554d532190beb0a1fc8e2a2e1445"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gl_helper_8hpp.html#af151554d532190beb0a1fc8e2a2e1445">drawSquare</a> (int side)</td></tr>
<tr class="memitem:a7a81891b1569e58a540aa32925d34120"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gl_helper_8hpp.html#a7a81891b1569e58a540aa32925d34120">drawTeapot</a> (float <a class="el" href="main_8cpp.html#ab8ef1bf8a70cc07c6d55823c390a7e76">angle</a>, float state)</td></tr>
<tr class="memitem:ab8aa40f8b094ca99196d3cb4b5df5060"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gl_helper_8hpp.html#ab8aa40f8b094ca99196d3cb4b5df5060">drawCrap</a> ()</td></tr>
<tr class="memitem:af09d4e544e73d211b48d2f6adc044a08"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gl_helper_8hpp.html#af09d4e544e73d211b48d2f6adc044a08">drawCircle</a> (float rad)</td></tr>
<tr class="memitem:a7c8a4c51d86286f4779ab2e9d2625aa7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gl_helper_8hpp.html#a7c8a4c51d86286f4779ab2e9d2625aa7">normalize</a> (<a class="el" href="structs__vector.html">s_vector</a> &amp;v)</td></tr>
<tr class="memitem:acda2c0df466197df16279cde740ead0f"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gl_helper_8hpp.html#acda2c0df466197df16279cde740ead0f">dotProduct</a> (<a class="el" href="structs__vector.html">s_vector</a> v1, <a class="el" href="structs__vector.html">s_vector</a> v2)</td></tr>
<tr class="memitem:af530c2beb2129c3fab823e98e5749b88"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gl_helper_8hpp.html#af530c2beb2129c3fab823e98e5749b88">absVector</a> (<a class="el" href="structs__vector.html">s_vector</a> v)</td></tr>
<tr class="memitem:a0e15415718a6e1b6bb503e99e3e3f1f6"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gl_helper_8hpp.html#a0e15415718a6e1b6bb503e99e3e3f1f6">getMag</a> (<a class="el" href="structs__vector.html">s_vector</a> v)</td></tr>
<tr class="memitem:a37ba1d8958dbbffe2d18498bf247fe1e"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gl_helper_8hpp.html#a37ba1d8958dbbffe2d18498bf247fe1e">getAngle</a> (<a class="el" href="structs__vector.html">s_vector</a> v1, <a class="el" href="structs__vector.html">s_vector</a> v2)</td></tr>
<tr class="memitem:a0986cafe89bc7ab4b7773366213f0781"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs__vector.html">s_vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gl_helper_8hpp.html#a0986cafe89bc7ab4b7773366213f0781">operator*</a> (float const &amp;scalar, <a class="el" href="structs__vector.html">s_vector</a> const &amp;v)</td></tr>
<tr class="memitem:a5354ecce7ab95921c6e47ed48e36e558"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs__vector.html">s_vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gl_helper_8hpp.html#a5354ecce7ab95921c6e47ed48e36e558">operator+</a> (<a class="el" href="structs__vector.html">s_vector</a> const &amp;v1, <a class="el" href="structs__vector.html">s_vector</a> const &amp;v2)</td></tr>
<tr class="memitem:a1dcd1211f392e4c04b17bdbb5329b64e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs__vector.html">s_vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="gl_helper_8hpp.html#a1dcd1211f392e4c04b17bdbb5329b64e">operator-</a> (<a class="el" href="structs__vector.html">s_vector</a> const &amp;v1, <a class="el" href="structs__vector.html">s_vector</a> const &amp;v2)</td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="af530c2beb2129c3fab823e98e5749b88"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float <a class="el" href="gl_helper_8hpp.html#af530c2beb2129c3fab823e98e5749b88">absVector</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs__vector.html">s_vector</a>&#160;</td>
          <td class="paramname"><em>v</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="gl_helper_8hpp_source.html#l00032">32</a> of file <a class="el" href="gl_helper_8hpp_source.html">glHelper.hpp</a>.</p>

<p>References <a class="el" href="types_8hpp_source.html#l00022">s_vector::x</a>, and <a class="el" href="types_8hpp_source.html#l00023">s_vector::y</a>.</p>

<p>Referenced by <a class="el" href="gl_helper_8hpp_source.html#l00038">getAngle()</a>, and <a class="el" href="gl_helper_8cpp_source.html#l00059">normalize()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="gl_helper_8hpp_af530c2beb2129c3fab823e98e5749b88_icgraph.png" border="0" usemap="#gl_helper_8hpp_af530c2beb2129c3fab823e98e5749b88_icgraph" alt=""/></div>
<map name="gl_helper_8hpp_af530c2beb2129c3fab823e98e5749b88_icgraph" id="gl_helper_8hpp_af530c2beb2129c3fab823e98e5749b88_icgraph">
<area shape="rect" id="node3" href="gl_helper_8hpp.html#a37ba1d8958dbbffe2d18498bf247fe1e" title="getAngle" alt="" coords="139,5,213,32"/><area shape="rect" id="node5" href="gl_helper_8hpp.html#a7c8a4c51d86286f4779ab2e9d2625aa7" title="normalize" alt="" coords="137,56,215,83"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="acda2c0df466197df16279cde740ead0f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float <a class="el" href="gl_helper_8hpp.html#acda2c0df466197df16279cde740ead0f">dotProduct</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs__vector.html">s_vector</a>&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structs__vector.html">s_vector</a>&#160;</td>
          <td class="paramname"><em>v2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="gl_helper_8hpp_source.html#l00029">29</a> of file <a class="el" href="gl_helper_8hpp_source.html">glHelper.hpp</a>.</p>

<p>References <a class="el" href="types_8hpp_source.html#l00022">s_vector::x</a>, and <a class="el" href="types_8hpp_source.html#l00023">s_vector::y</a>.</p>

<p>Referenced by <a class="el" href="world_8cpp_source.html#l00085">World::applyCollision()</a>, and <a class="el" href="gl_helper_8hpp_source.html#l00038">getAngle()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="gl_helper_8hpp_acda2c0df466197df16279cde740ead0f_icgraph.png" border="0" usemap="#gl_helper_8hpp_acda2c0df466197df16279cde740ead0f_icgraph" alt=""/></div>
<map name="gl_helper_8hpp_acda2c0df466197df16279cde740ead0f_icgraph" id="gl_helper_8hpp_acda2c0df466197df16279cde740ead0f_icgraph">
<area shape="rect" id="node3" href="class_world.html#a1b037e6b00d93bac9ec7db5a1217e4fc" title="World::applyCollision" alt="" coords="139,5,283,32"/><area shape="rect" id="node11" href="gl_helper_8hpp.html#a37ba1d8958dbbffe2d18498bf247fe1e" title="getAngle" alt="" coords="174,56,247,83"/><area shape="rect" id="node5" href="class_world.html#a7fa844c028cf185a5f90359cceeabf7c" title="World::paint" alt="" coords="331,5,423,32"/><area shape="rect" id="node7" href="main_8cpp.html#a1e5b20fed15743656bb6d2e6a6ea6269" title="display" alt="" coords="473,5,535,32"/><area shape="rect" id="node9" href="main_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="584,5,635,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af09d4e544e73d211b48d2f6adc044a08"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="gl_helper_8hpp.html#af09d4e544e73d211b48d2f6adc044a08">drawCircle</a> </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>rad</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="gl_helper_8cpp_source.html#l00049">49</a> of file <a class="el" href="gl_helper_8cpp_source.html">glHelper.cpp</a>.</p>

<p>References <a class="el" href="types_8hpp_source.html#l00006">PI</a>.</p>

<p>Referenced by <a class="el" href="creature_8cpp_source.html#l00052">Creature::paint()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="gl_helper_8hpp_af09d4e544e73d211b48d2f6adc044a08_icgraph.png" border="0" usemap="#gl_helper_8hpp_af09d4e544e73d211b48d2f6adc044a08_icgraph" alt=""/></div>
<map name="gl_helper_8hpp_af09d4e544e73d211b48d2f6adc044a08_icgraph" id="gl_helper_8hpp_af09d4e544e73d211b48d2f6adc044a08_icgraph">
<area shape="rect" id="node3" href="class_creature.html#a4e16b04f8a7a0fb76d1da13a671a3d2a" title="Creature::paint" alt="" coords="136,5,243,32"/><area shape="rect" id="node5" href="class_world.html#a7fa844c028cf185a5f90359cceeabf7c" title="World::paint" alt="" coords="291,5,383,32"/><area shape="rect" id="node7" href="main_8cpp.html#a1e5b20fed15743656bb6d2e6a6ea6269" title="display" alt="" coords="433,5,495,32"/><area shape="rect" id="node9" href="main_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="544,5,595,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ab8aa40f8b094ca99196d3cb4b5df5060"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="gl_helper_8hpp.html#ab8aa40f8b094ca99196d3cb4b5df5060">drawCrap</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="gl_helper_8cpp_source.html#l00036">36</a> of file <a class="el" href="gl_helper_8cpp_source.html">glHelper.cpp</a>.</p>

<p>References <a class="el" href="main_8cpp_source.html#l00025">angle</a>, <a class="el" href="types_8hpp_source.html#l00007">DEG_TO_RAD</a>, <a class="el" href="gl_helper_8cpp_source.html#l00009">drawSquare()</a>, and <a class="el" href="gl_helper_8cpp_source.html#l00023">drawTeapot()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="gl_helper_8hpp_ab8aa40f8b094ca99196d3cb4b5df5060_cgraph.png" border="0" usemap="#gl_helper_8hpp_ab8aa40f8b094ca99196d3cb4b5df5060_cgraph" alt=""/></div>
<map name="gl_helper_8hpp_ab8aa40f8b094ca99196d3cb4b5df5060_cgraph" id="gl_helper_8hpp_ab8aa40f8b094ca99196d3cb4b5df5060_cgraph">
<area shape="rect" id="node3" href="gl_helper_8cpp.html#af151554d532190beb0a1fc8e2a2e1445" title="drawSquare" alt="" coords="131,5,221,32"/><area shape="rect" id="node5" href="gl_helper_8cpp.html#a7a81891b1569e58a540aa32925d34120" title="drawTeapot" alt="" coords="132,56,220,83"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af151554d532190beb0a1fc8e2a2e1445"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="gl_helper_8hpp.html#af151554d532190beb0a1fc8e2a2e1445">drawSquare</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>side</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="gl_helper_8cpp_source.html#l00009">9</a> of file <a class="el" href="gl_helper_8cpp_source.html">glHelper.cpp</a>.</p>

<p>Referenced by <a class="el" href="gl_helper_8cpp_source.html#l00036">drawCrap()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="gl_helper_8hpp_af151554d532190beb0a1fc8e2a2e1445_icgraph.png" border="0" usemap="#gl_helper_8hpp_af151554d532190beb0a1fc8e2a2e1445_icgraph" alt=""/></div>
<map name="gl_helper_8hpp_af151554d532190beb0a1fc8e2a2e1445_icgraph" id="gl_helper_8hpp_af151554d532190beb0a1fc8e2a2e1445_icgraph">
<area shape="rect" id="node3" href="gl_helper_8hpp.html#ab8aa40f8b094ca99196d3cb4b5df5060" title="drawCrap" alt="" coords="145,5,221,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a7a81891b1569e58a540aa32925d34120"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="gl_helper_8hpp.html#a7a81891b1569e58a540aa32925d34120">drawTeapot</a> </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="gl_helper_8cpp_source.html#l00023">23</a> of file <a class="el" href="gl_helper_8cpp_source.html">glHelper.cpp</a>.</p>

<p>Referenced by <a class="el" href="gl_helper_8cpp_source.html#l00036">drawCrap()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="gl_helper_8hpp_a7a81891b1569e58a540aa32925d34120_icgraph.png" border="0" usemap="#gl_helper_8hpp_a7a81891b1569e58a540aa32925d34120_icgraph" alt=""/></div>
<map name="gl_helper_8hpp_a7a81891b1569e58a540aa32925d34120_icgraph" id="gl_helper_8hpp_a7a81891b1569e58a540aa32925d34120_icgraph">
<area shape="rect" id="node3" href="gl_helper_8hpp.html#ab8aa40f8b094ca99196d3cb4b5df5060" title="drawCrap" alt="" coords="142,5,218,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a37ba1d8958dbbffe2d18498bf247fe1e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float <a class="el" href="gl_helper_8hpp.html#a37ba1d8958dbbffe2d18498bf247fe1e">getAngle</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs__vector.html">s_vector</a>&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structs__vector.html">s_vector</a>&#160;</td>
          <td class="paramname"><em>v2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="gl_helper_8hpp_source.html#l00038">38</a> of file <a class="el" href="gl_helper_8hpp_source.html">glHelper.hpp</a>.</p>

<p>References <a class="el" href="gl_helper_8hpp_source.html#l00032">absVector()</a>, and <a class="el" href="gl_helper_8hpp_source.html#l00029">dotProduct()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="gl_helper_8hpp_a37ba1d8958dbbffe2d18498bf247fe1e_cgraph.png" border="0" usemap="#gl_helper_8hpp_a37ba1d8958dbbffe2d18498bf247fe1e_cgraph" alt=""/></div>
<map name="gl_helper_8hpp_a37ba1d8958dbbffe2d18498bf247fe1e_cgraph" id="gl_helper_8hpp_a37ba1d8958dbbffe2d18498bf247fe1e_cgraph">
<area shape="rect" id="node3" href="gl_helper_8hpp.html#af530c2beb2129c3fab823e98e5749b88" title="absVector" alt="" coords="130,5,211,32"/><area shape="rect" id="node5" href="gl_helper_8hpp.html#acda2c0df466197df16279cde740ead0f" title="dotProduct" alt="" coords="128,56,213,83"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a0e15415718a6e1b6bb503e99e3e3f1f6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float <a class="el" href="gl_helper_8hpp.html#a0e15415718a6e1b6bb503e99e3e3f1f6">getMag</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs__vector.html">s_vector</a>&#160;</td>
          <td class="paramname"><em>v</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="gl_helper_8hpp_source.html#l00035">35</a> of file <a class="el" href="gl_helper_8hpp_source.html">glHelper.hpp</a>.</p>

<p>References <a class="el" href="types_8hpp_source.html#l00022">s_vector::x</a>, and <a class="el" href="types_8hpp_source.html#l00023">s_vector::y</a>.</p>

<p>Referenced by <a class="el" href="world_8cpp_source.html#l00085">World::applyCollision()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="gl_helper_8hpp_a0e15415718a6e1b6bb503e99e3e3f1f6_icgraph.png" border="0" usemap="#gl_helper_8hpp_a0e15415718a6e1b6bb503e99e3e3f1f6_icgraph" alt=""/></div>
<map name="gl_helper_8hpp_a0e15415718a6e1b6bb503e99e3e3f1f6_icgraph" id="gl_helper_8hpp_a0e15415718a6e1b6bb503e99e3e3f1f6_icgraph">
<area shape="rect" id="node3" href="class_world.html#a1b037e6b00d93bac9ec7db5a1217e4fc" title="World::applyCollision" alt="" coords="120,5,264,32"/><area shape="rect" id="node5" href="class_world.html#a7fa844c028cf185a5f90359cceeabf7c" title="World::paint" alt="" coords="313,5,405,32"/><area shape="rect" id="node7" href="main_8cpp.html#a1e5b20fed15743656bb6d2e6a6ea6269" title="display" alt="" coords="454,5,517,32"/><area shape="rect" id="node9" href="main_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="565,5,616,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a0be26f297e969c1bec3fabc753fbcee8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="main_8cpp.html#a0be26f297e969c1bec3fabc753fbcee8">initCore</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="main_8cpp_source.html#l00108">108</a> of file <a class="el" href="main_8cpp_source.html">main.cpp</a>.</p>

<p>References <a class="el" href="main_8cpp_source.html#l00020">CR_NUM</a>, <a class="el" href="world_8cpp_source.html#l00010">World::init()</a>, <a class="el" href="main_8cpp_source.html#l00029">world</a>, <a class="el" href="main_8cpp_source.html#l00021">XSize</a>, and <a class="el" href="main_8cpp_source.html#l00022">YSize</a>.</p>

<p>Referenced by <a class="el" href="main_8cpp_source.html#l00112">main()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="gl_helper_8hpp_a0be26f297e969c1bec3fabc753fbcee8_cgraph.png" border="0" usemap="#gl_helper_8hpp_a0be26f297e969c1bec3fabc753fbcee8_cgraph" alt=""/></div>
<map name="gl_helper_8hpp_a0be26f297e969c1bec3fabc753fbcee8_cgraph" id="gl_helper_8hpp_a0be26f297e969c1bec3fabc753fbcee8_cgraph">
<area shape="rect" id="node3" href="class_world.html#a695e14e5574f9bbdf58c8f39538b11d3" title="World::init" alt="" coords="121,81,202,108"/><area shape="rect" id="node5" href="class_creature.html#ae109a8875e1906f4ffee7bf3b8ba479c" title="Creature::init" alt="" coords="267,56,363,83"/><area shape="rect" id="node9" href="class_object.html#af09fffca261588bbbffc8bbe83bab13f" title="Object::getColour" alt="" coords="437,5,560,32"/><area shape="rect" id="node11" href="class_object.html#a6e06f467ee7f36a5dc067ff698022702" title="Object::getKinematic" alt="" coords="427,107,571,133"/><area shape="rect" id="node14" href="class_object.html#ae41a90d5f2c9fb4a3252565396f6b738" title="Object::getRadius" alt="" coords="251,157,378,184"/><area shape="rect" id="node7" href="class_object.html#a21ffb1c449600ac2cd2afb1aefdc5bde" title="Object::setRadius" alt="" coords="435,56,562,83"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="gl_helper_8hpp_a0be26f297e969c1bec3fabc753fbcee8_icgraph.png" border="0" usemap="#gl_helper_8hpp_a0be26f297e969c1bec3fabc753fbcee8_icgraph" alt=""/></div>
<map name="gl_helper_8hpp_a0be26f297e969c1bec3fabc753fbcee8_icgraph" id="gl_helper_8hpp_a0be26f297e969c1bec3fabc753fbcee8_icgraph">
<area shape="rect" id="node3" href="main_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="120,5,171,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a7c8a4c51d86286f4779ab2e9d2625aa7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="gl_helper_8hpp.html#a7c8a4c51d86286f4779ab2e9d2625aa7">normalize</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs__vector.html">s_vector</a> &amp;&#160;</td>
          <td class="paramname"><em>v</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="gl_helper_8cpp_source.html#l00059">59</a> of file <a class="el" href="gl_helper_8cpp_source.html">glHelper.cpp</a>.</p>

<p>References <a class="el" href="gl_helper_8hpp_source.html#l00032">absVector()</a>, <a class="el" href="types_8hpp_source.html#l00022">s_vector::x</a>, and <a class="el" href="types_8hpp_source.html#l00023">s_vector::y</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="gl_helper_8hpp_a7c8a4c51d86286f4779ab2e9d2625aa7_cgraph.png" border="0" usemap="#gl_helper_8hpp_a7c8a4c51d86286f4779ab2e9d2625aa7_cgraph" alt=""/></div>
<map name="gl_helper_8hpp_a7c8a4c51d86286f4779ab2e9d2625aa7_cgraph" id="gl_helper_8hpp_a7c8a4c51d86286f4779ab2e9d2625aa7_cgraph">
<area shape="rect" id="node3" href="gl_helper_8hpp.html#af530c2beb2129c3fab823e98e5749b88" title="absVector" alt="" coords="134,5,215,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a0986cafe89bc7ab4b7773366213f0781"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs__vector.html">s_vector</a> operator* </td>
          <td>(</td>
          <td class="paramtype">float const &amp;&#160;</td>
          <td class="paramname"><em>scalar</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structs__vector.html">s_vector</a> const &amp;&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="gl_helper_8hpp_source.html#l00043">43</a> of file <a class="el" href="gl_helper_8hpp_source.html">glHelper.hpp</a>.</p>

<p>References <a class="el" href="types_8hpp_source.html#l00022">s_vector::x</a>, and <a class="el" href="types_8hpp_source.html#l00023">s_vector::y</a>.</p>

</div>
</div>
<a class="anchor" id="a5354ecce7ab95921c6e47ed48e36e558"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs__vector.html">s_vector</a> operator+ </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs__vector.html">s_vector</a> const &amp;&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structs__vector.html">s_vector</a> const &amp;&#160;</td>
          <td class="paramname"><em>v2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="gl_helper_8hpp_source.html#l00046">46</a> of file <a class="el" href="gl_helper_8hpp_source.html">glHelper.hpp</a>.</p>

<p>References <a class="el" href="types_8hpp_source.html#l00022">s_vector::x</a>, and <a class="el" href="types_8hpp_source.html#l00023">s_vector::y</a>.</p>

</div>
</div>
<a class="anchor" id="a1dcd1211f392e4c04b17bdbb5329b64e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs__vector.html">s_vector</a> operator- </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs__vector.html">s_vector</a> const &amp;&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structs__vector.html">s_vector</a> const &amp;&#160;</td>
          <td class="paramname"><em>v2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="gl_helper_8hpp_source.html#l00049">49</a> of file <a class="el" href="gl_helper_8hpp_source.html">glHelper.hpp</a>.</p>

<p>References <a class="el" href="types_8hpp_source.html#l00022">s_vector::x</a>, and <a class="el" href="types_8hpp_source.html#l00023">s_vector::y</a>.</p>

</div>
</div>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 20 2012 21:57:14 for junglego by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
